<!Doctype html>
<html>
<head>
<title></title>
<link href="bootstrap.min.css" rel="stylesheet">
 <script src="jquery-3.3.1/jquery-3.3.1.min.js"></script>
 <script src="bootstrap.min.js"></script>
</head>
<body>

<button  type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
   点我
</button>
 
<!-- 模态框 -->
<div class="modal fade" id="myModal">
  <div class="modal-dialog">
    <div class="modal-content">
 
      <!-- 模态框头部 -->
      <div class="modal-header">
        <h4 class="modal-title">模态框头部</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>
 
      <!-- 模态框主体 -->
      <div class="modal-body">
        模态框内容..
      </div>
 
      <!-- 模态框底部 -->
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
      </div>
 
    </div>
  </div>
</div>

</body>
</html>